#ifndef COMSETTINGWIDGET_H
#define COMSETTINGWIDGET_H

#include <QWidget>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include "settings/serversetting.h"
#include "communication/tcpclient.h"

namespace Ui {
class comsettingwidget;
}

class comsettingwidget : public QWidget
{
    Q_OBJECT

public:
    explicit comsettingwidget(QWidget *parent = 0);
    ~comsettingwidget();
    void init();

private slots:
    void on_pushButton_clicked();
    void readData();

    void on_pushButton_2_clicked();
   // void onAccepted();

    void on_btn_setserver_clicked();

    void on_btn_back_clicked();

private:
    Ui::comsettingwidget *ui;
    QSerialPort* mSp;
    TcpClient* mTc;
    ServerSetting* mSettingDlg;
};

#endif // COMSETTINGWIDGET_H
